package com.lin.repository;

import com.lin.dataobject.OrderMaster;
import com.lin.dataobject.SellerInfo;
import com.lin.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Administrator on 2017/8/29.
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster,String> {
    Page<OrderMaster> findByBuyerOpenid(String openid, Pageable pageable);
    List<OrderMaster> findAll(Specification<OrderMaster> spec);
    Page<OrderMaster> findAll(Specification<OrderMaster> spec, Pageable pageable);
    Long count(Specification<OrderMaster> specification);
}
